﻿<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Test !!!</title>
</head>
<body>
    <script src="https://cdn.socket.io/socket.io-1.3.3.js"></script>
    HELLO WORLD !
    <p id="idTIMER"></p>
    <script>
        var socket = io.connect('http://localhost:1337' );

        socket.on('timer', function (message) {

            document.getElementById('idTIMER').innerHTML="il reste " + message + " secondes avant la fin du jeu !";

        })
    </script>
</body>
</html>